package com.zx.tv.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

import com.zx.base.http.URLHelper;
import com.zx.base.util.UpdateManager;
import com.zx.tv.app.NewTVApp;

public class MusicDownService extends Service {  
    
	private NewTVApp app ;
  
    @Override  
    public IBinder onBind(Intent arg0) {  
        return null;  
    }  
  
    @Override  
    public void onCreate() {  
    	
    	app = (NewTVApp)getApplication();
    }  
  
    @Override  
    public void onDestroy() {  
    }  
  
    @Override  
    public void onStart(Intent intent, int startId) {  
    	UpdateManager mUpdateManager = new UpdateManager(app, URLHelper.main + app.music.getUrl());
    	mUpdateManager.downloadMp3();
    }  
  
  
    public void pause() {  
    }  
  
}  